package com.example.springmvcproject.Service.Inteface;

import com.example.springmvcproject.Utils.ResultMessage;
import com.example.springmvcproject.Vo.CreditDelVo;
import com.example.springmvcproject.Vo.CreditSelectiveVo;
import com.example.springmvcproject.Vo.CreditUpVo;
import com.example.springmvcproject.Vo.CreditVo;

public interface CreditService {
    /**
     * 添加一个信用卡
     * @param creditVo
     * @return
     */
    ResultMessage addCredit(CreditVo creditVo);

    ResultMessage selectCreditsBySelective(CreditSelectiveVo creditSelectiveVo);

    ResultMessage deleteCreditById(CreditDelVo creditDelVo);

    /**
     * 修改还款状态，根据ID和卡号
     * @param creditUpVo
     * @return
     */
    ResultMessage updateStatusByIdAndNum(CreditUpVo creditUpVo);
}
